<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: YanHilin
  Date: 2020/5/4
  Time: 17:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>我的评价</title>
    <base href="http://localhost:8080/onlineflower/">
    <%@include file="/page/comment/head.jsp"%>
    <link rel="stylesheet" type="text/css" href="static/css/form.css">
    <style type="text/css">
        #con{
            margin: 0 auto;
            width: 80%;
        }
        .card-body{
            display: flex;
            justify-content: space-around;
        }
    </style>
</head>
<body>
<%@include file="/page/user/head_nav.jsp"%>

<div id="con">
    <c:if test="${empty requestScope.evaluates}">
        <h1>暂无评价</h1>
        <h4><a href="page/user/index.jsp">去逛逛</a></h4>
    </c:if>
    <c:if test="${not empty requestScope.evaluates}">
        <c:forEach items="${requestScope.evaluates}" var="item">
            <div class="card">
                <div class="card-header">
                        ${item.userid}
                </div>
                <div class="card-body">
                    <div style="width: 30%">
                        <a href="http://localhost:8080/onlineflower/client/flowerServlet?action=showFlowerDetail&flowerid=${item.flowerid}">
                            <img src="static/picFlower/${item.flower_photo}" alt="照片" style="height:200px;width: 200px">

                        </a>
                    </div>
                    <div style="width: 70%">
                        鲜花编号： <span>${item.flowerid}</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 店铺编号：${item.enterpriseid}
                        <h3>${item.flower_name}</h3>
                        <span style="font-size: 20px">￥ </span><span style="color: red;font-size: 25px">&nbsp;&nbsp;${item.price}</span>
                        <h3 class="card-title">[评价]&nbsp;&nbsp;${item.content}</h3>
                    </div>

                </div>
                <div class="card-footer">
                        ${item.createtime}
                </div>
            </div>
            <br/>
        </c:forEach>
    </c:if>
</div>
</body>
</html>
